package com.itheima.demo;

public class Demo {
    public static void main(String[] args) {
        useShowHandler((String s)-> {
            System.out.println("show方法...");
                    System.out.println(s);
        }
        );
    }

    public static void useShowHandler(ShowHandler showHandler){
        showHandler.show("啦啦啦");
    }
}

interface ShowHandler{
    void show(String s);
}
